package com.se.nju.rtvps.service;

import java.util.HashMap;

import com.se.nju.rtvps.operation.Operation;

public class OperationFactory {
	private HashMap<String,Operation> map;
	
	public OperationFactory(){
		map = new HashMap<String,Operation>();
	}
	
	public void registerOperation(String name, Operation operation){
		map.put(name, operation);
	}
	
	public Operation getOperation(String name){
		return map.get(name);
	}
	
}
